<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta name="author" content="中文Lee 360811363@qq.com">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../css/public.css" media="all">
    <!--
    * [LupMisNotAllowedSync]
    * 本代码为系统自动生成代码，请根据自己业务进行修改;
    * 生成时间 2022-02-15 18:29:17;
    * 版权所有 2020-2022 lizhongwen，并保留所有权利;
    * 说明: 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和使用；不允许对程序代码以任何形式任何目的的再发布;
    * 作者: 中文Lee;
    * 作者主页: http://www.lizhongwen.com;
    * 邮箱: 360811363@qq.com;
    * QQ: 360811363;
    -->
</head>

<body>
    <div class="layuimini-container">
        <div class="layuimini-main">
            <div id="form-list">
                <script id='tpl-list' type="text/template">
                    <form class="layui-form" action="">
                        <input type="hidden" name="id" value="<%:=data.id%>">
                        <div class="layui-form-item">
                            <label class="layui-form-label">所属角色</label>
                            <div class="layui-input-block">
                                <div id="roleSelectBox" class="xm-select-demo"></div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">所属机构</label>
                            <div class="layui-input-block">
                                <input type="hidden" name="org_id" value="<%:=data.org_id%>">
                                <input type="text" name="org_name" readonly onclick="return selectOrg()" value="<%=data.org_row.name%>" lay-verify="required" lay-reqtext="请选择所属机构" placeholder="请选择所属机构" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">登录账号</label>
                            <div class="layui-input-block">
                                <input type="text" style="background-color:#ededed;" disabled value="<%:=data.account_name%>" lay-verify="required" lay-reqtext="请输入登录账号" placeholder="请输入登录账号" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">登录密码</label>
                            <div class="layui-input-block">
                                <input type="password" name="password" placeholder="为空则不修改密码" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">姓名</label>
                            <div class="layui-input-block">
                                <input type="text" name="full_name" value="<%:=data.full_name%>" lay-verify="required" lay-reqtext="请输入姓名" placeholder="请输入姓名" autocomplete="off" class="layui-input">
                            </div>
                        </div>


                        <div class="layui-form-item">
                            <label class="layui-form-label">性别</label>
                            <div class="layui-input-block">
                                <select name="sex">
                                    <option value="u">未知</option>
                                    <option value="m" <% if(data.sex=='m'){%> selected <% } %>>男</option>
                                    <option value="w" <% if(data.sex=='w'){%> selected <% } %>>女</option>
                                </select>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">邮箱（Email）</label>
                            <div class="layui-input-block">
                                <input type="email" name="email" value="<%:=data.email%>" placeholder="请输入邮箱（Email）" autocomplete="off" class="layui-input">
                            </div>
                        </div>


                        <div class="layui-form-item">
                            <label class="layui-form-label">手机号码</label>
                            <div class="layui-input-block">
                                <input type="text" name="phone" value="<%:=data.phone%>" placeholder="请输入手机号码" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">座机</label>
                            <div class="layui-input-block">
                                <input type="text" name="fixed_telephone" value="<%:=data.fixed_telephone%>" placeholder="请输入座机" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">安全IP（多个用|隔开）</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required" value="<%:=data.safe_ips%>" name="safe_ips" placeholder="安全IP（多个用|隔开）" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">状态</label>
                            <div class="layui-input-block">
                                <input type="checkbox" <% if(data.status==1){%> checked
                                <% } %> id="switch" lay-skin="switch" lay-text="ON|OFF" lay-filter="status">
                                    <input type="hidden" name="status" autocomplete="off" value="<%:=data.status%>" class="layui-input">
                            </div>
                        </div>



                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit="" lay-filter="form-submit">立即提交</button>
                            </div>
                        </div>
                    </form>
                </script>
            </div>


        </div>
    </div>

    <script src="../../../js/run.js"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
    <script type="text/javascript">
        var webpath = "./script/edit.js?v=" + static_version;
        document.write('<scr' + 'ipt src="' + webpath + '"></scr' + 'ipt>');
    </script>
</body>

</html>